#include "junix.h"
#include <boost/random.hpp>

using namespace std;

int main(int argc, char **argv)
{
	boost::mt19937 rng;                 // produces randomness out of thin air
	// see pseudo-random number generators
	boost::uniform_int<> six(1,6);       // distribution that maps to 1..6
	// see random number distributions
	boost::variate_generator<boost::mt19937&, boost::uniform_int<> >
		die(rng, six);             // glues randomness with mapping
	while(true)
	{
		cout<<die()<<" ";                      // simulate rolling a die
	}
}
